package top.huxy.boot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huxy.boot.model.entity.ScheduleJob;

import java.util.List;

@Mapper
@Repository
public interface ScheduleMapper {

    int saveScheduleJob(ScheduleJob scheduleJob);

    ScheduleJob selectByMaxID();

    List<ScheduleJob> getAllEnableScheduleJobs();

    int setFalse(Integer scheduleId);

    List<ScheduleJob> getScheduleList();

    int setTrue(Integer scheduleId);

    ScheduleJob selectById(Integer scheduleId);

    int getScheduleLogCount();

    ScheduleJob getScheduleById(Integer scheduleId);
}
